From: Keir Fraser Date: Fri, 16 Mar 2007 23:33:44 +0000 (+0000) Subject: Fix build when bcc is not installed. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15282^2~43 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=93943bf038d7c752bd719400bed29e60aab03211;p=xen.git Fix build when bcc is not installed. --- diff --git a/tools/firmware/Makefile b/tools/firmware/Makefile index b924fde793..38338471fd 100644 --- a/tools/firmware/Makefile +++ b/tools/firmware/Makefile @@ -14,7 +14,7 @@ SUBDIRS += hvmloader .PHONY: all all: - @set -e; if [ $$((`bcc -v 2>&1 | grep version | cut -d' ' -f 3 | awk -F. '{ printf "0x%02x%02x%02x", $$1, $$2, $$3}'`)) -lt $$((0x00100e)) ] ; then \ + @set -e; if [ $$((`( bcc -v 2>&1 | grep version || echo 0.0.0 ) | cut -d' ' -f 3 | awk -F. '{ printf "0x%02x%02x%02x", $$1, $$2, $$3}'`)) -lt $$((0x00100e)) ] ; then \ echo "***********************************************************"; \ echo "Require dev86 package version >= 0.16.14 to build firmware!"; \ echo "(visit http://www.cix.co.uk/~mayday for more information)"; \